package com.myblog.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 功能: Swagger配置类
 * 作者: 沙琪马
 * 日期: 2024/6/21 10:06
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
            .info(new Info()
                    .title("后端接口文档")
                    .description("SpringBoot3 集成 Swagger3")
                    .version("v1"));
    }

}
